Now the properties will only be regenerated whenever there's a GtkWidgetPath
to query about.
if (!added)
priv->providers = g_list_append (priv->providers, new_data);
- rebuild_properties (context);
+ if (priv->widget_path)
+ rebuild_properties (context);
}
void
list = list->next;
}
- if (removed)
+ if (removed && priv->widget_path)
rebuild_properties (context);
}
}
if (path)
- priv->widget_path = gtk_widget_path_copy (path);
+ {
+ priv->widget_path = gtk_widget_path_copy (path);
+ rebuild_properties (context);
+ }
}
G_CONST_RETURN GtkWidgetPath *